package com.market.domain.strategy.service.rule.chain;

public abstract class AbstractLogicChain implements ILogicChain{

    private ILogicChain next;


    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    @Override
    public ILogicChain next() {
        return next;
    }

    //子类返回关键字
    protected abstract String ruleModel();

//    交由子类去处理具体逻辑
//    Integer logic(String userId, Long strategyId);
}
